import React from 'react';
import PropTypes from 'prop-types';

export default class BottomBar extends React.Component {

  static contextTypes = {
    settings: PropTypes.object.isRequired
  };

  render() {

    console.log(`render <${this.constructor.name}/> once`);

    const settings = this.context.settings;

    return (
        <div className="bottom-bar">
          <span>作者：{settings.author}</span>
          <span>公司：{settings.company}</span>
        </div>
    );
  }

}
